<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	request.setAttribute("basePath",basePath);
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>HBUNOJ-报名系统-后台管理</title>
    <link rel="stylesheet" href="${basePath}css/layui.css">
    <style type="text/css">
        html,
        body {
            width: 100%;
            height: 100%;
        }

        #Bottom {
            position: fixed;
            width: 100%;
            bottom: 0;
            text-align: center;
            border-top: 0.5px solid #000000;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-col-md12">
    <ul class="layui-nav menu">
        <li class="layui-nav-item layui-this"><a href="/MatchServlet?action=query" target="frame">比赛管理</a></li>
        <li class="layui-nav-item"><a href="/NoticeServlet?action=query" target="frame">公告管理</a></li>
        <li class="layui-nav-item"><a href="/UserServlet?action=query" target="frame">用户管理</a></li>
        <li class="layui-nav-item"><a href="/AdminServlet?action=query" target="frame">管理员管理</a></li>
    </ul>
    <ul class="layui-nav layui-layout-right menu">
        <li class="layui-nav-item">
            ${loginAdmin.nickname}
        </li>
        <li class="layui-nav-item"><a href="/LoginServlet?action=logout">退出</a></li>
    </ul>
</div>
<div class="layui-row">
    <div class="">
        <iframe class="layui-col-md12" src="/MatchServlet?action=query" name="frame" id="frame" title="frame" allowTransparency="true" scrolling="auto"
                frameborder="0" noresize="noresize" onload='this.style.height=(document.body.clientHeight-80)+"px";'></iframe>
    </div>
</div>
<div id="Bottom" class="layui-trans layadmin-user-login-footer">
    <p><span>© 2019</span><span>河北民族师范学院-大数据应用研发工作室-ACM爱好者协会</span></p>
</div>
<script src="${basePath}js/layui.all.js" charset="utf-8"></script>
<script type="text/javascript">
    layui.use(['element', 'jquery'], function () {
        var element = layui.element, $ = layui.jquery;
        element.on('nav(demo)', function (elem) {
            layer.msg(elem.text());
        });
    });
</script>
</body>
</html>
